<div class="table-responsive">
  <form action="<?=printUrl('SingleSettleAgain','storeUpload')?>" name="storeUpload" id="storeUpload">
    <input type="hidden" name="procId" id="procId" value="<?=$procData['id']?>">
    <!-- Table -->
    <table class="table table-condensed table-bordered">
      <tbody>
        <tr>
          <td class="col-md-1">结算凭证：</td>
          <td class="col-md-6" <?php if ( in_array($action, array('edit')) ) {?>data-toggle="tooltip" data-placement="top" title="文件上传后记得点击保存按钮"<?php } ?>>
            <span id="settleUploadDownload">
            <?php if ($procData['buFileId']) {?>
            <a type="button" class="btn btn-default" href="<?=printUrl('Upload','download',array('fileId'=>$procData['buFileId']))?>" aria-label="Left Align" role="button">
              <span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span>
              附件下载
            </a>
            <?php } ?>
            </span>
            <?php if ( in_array($action, array('edit')) ) {?>
            <input type="hidden" id="settleUploadFileId" name="fileId" value="<?=$procData['buFileId']?>" readonly="readonly">
            <input type="button" id="settleUpload" value="上传" />
            <span>仅上传压缩包，压缩包控制在20M以内，双月后20日前可重新提交压缩包。注：结算时间截止至双月结束后10天内。</span>
            <?php } ?>
          </td>
          <?php if ( in_array($action, array('edit')) ) {?>
          <td class="col-md-5">
            <button type="button" class="btn btn-default btn-primary" role="button" onclick="ajaxFormSubmit('storeUpload')">保存凭证</button>
          </td>
          <?php } ?>
        </tr>
      </tbody>
    </table>
  </form>
</div>
<?php initUploadButtons(array('settleUpload'), printUrl('Upload','uploadSave',array('dir'=>'settleFile')), 'imgFile'); ?>
<script type="text/javascript">
  $(function () {
    $('[data-toggle="tooltip"]').tooltip()
  })
</script>